/**
 * author      : dormi330
 * date        : 2018/6/24
 * project     : mybatis
 * description : TODO
 */

package org.wzq.learn.infrastructure.persist.mybatis;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.wzq.learn.domain.order.OrderSummary;

import java.util.List;


@Mapper
public interface OrderSummaryMapper {

    void insert(@Param("eo") OrderSummary eo);

    // ============= query ===============

    OrderSummary queryById(
            @Param("tenantCode") String tenantCode,
            @Param("id") String id);

    List<OrderSummary> queryByMember(
            @Param("tenantCode") String tenantCode,
            @Param("memberId") String memberId);

}
